package org.lanqiao.webfm.model;


import java.util.*;
import java.io.Serializable;
import java.sql.*;
import java.lang.reflect.*;

import javacommon.base.*;
import javacommon.ijdbc.*;
import javacommon.util.*;
import javacommon.web.page.*;

import org.lanqiao.webfm.model.*;

import org.slf4j.*;

/**
*@Author zhengwei
**/
public class GoodsMapper implements RowMapper<Goods>{
	public Goods mapRow(ResultSet rs) throws SQLException {
		Goods model = new Goods();
		model.setId(rs.getLong("ID"));
		model.setName(rs.getString("NAME"));
		model.setTypeId(rs.getLong("TYPE_ID"));
		model.setPrice(rs.getDouble("PRICE"));
		model.setDiscount(rs.getDouble("DISCOUNT"));
		model.setDescp(rs.getString("DESCP"));
		model.setSupplier(rs.getString("SUPPLIER"));
		model.setQty(rs.getLong("QTY"));
		model.setIspreferred(rs.getString("ISPREFERRED"));
		model.setPic(rs.getString("PIC"));
		return model;
	}
}